/**
 * 
 */
package com.threedt.nova.portfolio.util;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.threedt.nova.portfolio.domain.User;


/**
 * @author vivek barsagadey
 *
 */
public class UserDelegate implements Serializable{

	
	private static Set<User> users = new HashSet<User>();

	public UserDelegate() {
	
	}

	public static Set<User> getUsers() {
		
		if (users.size() == 0) {

			for (int i = 0; i < 10; i++) {
				User thisUser = new User();
				thisUser.setUserName("vivek" + i);
				thisUser.setPassword("password");
				thisUser.setUuId(""+i);
				users.add(thisUser);
			
			}

		}
		return users;
	}

	public static void setUsers(Set<User> users) {
		UserDelegate.users = users;
	}
	
	
	
	
}
